Remove the constraints on services callback, since there is a spec against it.

Akinori MUSHA 10 anos atrás
pai
commit
2f1ff3192c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      config/routes.rb

+ 1 - 1
config/routes.rb

@@ -67,7 +67,7 @@ Huginn::Application.routes.draw do
67 67
   post  "/users/:user_id/update_location/:secret" => "web_requests#update_location" # legacy
68 68
 
69 69
   match '/auth/:provider/callback', to: 'services#callback',
70
-        via: [:get, :post], constraints: { provider: Regexp.union(Devise.omniauth_providers.map(&:to_s)) }
70
+        via: [:get, :post] #, constraints: { provider: Regexp.union(Devise.omniauth_providers.map(&:to_s)) }
71 71
   devise_for :users, :sign_out_via => [ :post, :delete ]
72 72
 
73 73
   get "/about" => "home#about"